package com.shensi.adminCollect.controller.market;

import com.shensi.common.core.controller.BaseController;
import com.shensi.common.core.domain.AjaxResult;
import com.shensi.common.core.page.TableDataInfo;
import com.shensi.adminCollect.domain.markert.UserRecommendRecord;
import com.shensi.adminCollect.domain.markert.vo.UserRecommendRecordQueryReq;
import com.shensi.adminCollect.service.markert.IUserRecommendRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @date 2024/1/17
 */
@RestController
@RequestMapping("/userRecommendRecord")
@Api(tags = "推荐列表")
public class UserRecommendRecordController extends BaseController {
    @Autowired
    private IUserRecommendRecordService userRecommendRecordService;

    @PostMapping("list")
    @ApiOperation(value = "列表",response = UserRecommendRecord.class)
    public TableDataInfo queryList(@RequestBody UserRecommendRecordQueryReq req){
        startPage();
        return getDataTable(userRecommendRecordService.queryList(req));
    }

    @PostMapping("export")
    @ApiOperation("导出")
    public AjaxResult export(@RequestBody UserRecommendRecordQueryReq req){
        return userRecommendRecordService.export(req);
    }

}
